package com.springboot.wisdom.serviceApi.system.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_dept")
public class DeptDO {
    private static final long serialVersionUID = 1L;

    /**
     * 部门ID。
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String deptId;
    @NotBlank(message = "请输入名称")
    private String deptName;
    private String deptType;
    private String deptParentId;
    private String deptPrincipalId;
    private String deptPrincipalPhone;
    private String deptPrincipalEmail;
    @Deprecated // 废弃。
    private Long deptState;

    private String createBy;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
